var myArray = [ "Apples", "Bananas", "Pears" ]; var randomItem = myArray[Math.floor(Math.random()*myArray.length)];
const randomValue = (list) => { return list[Math.floor(Math.random() * list.length)]; };